import request from '@/utils/request'
import { encrypt } from '@/utils/JSEncrypt';

export function login() {
  return request({
    url: '/farm-jdcx/pcLogin',
    method: 'post',
    data: {
      phonenumber: '15888888888',
      password: encrypt('admin123')
    }
  })
}

export function getInfo() {
  return request({
    url: '/v1/auth/user/info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
